package controller

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

type user struct {
	Name string `json:"name"`
	Age  int    `json:"age"`
}

// @Summary 查询用户信息
// @Description 查询用户信息
// @Tags 用户列表
// @Accept json
// @Success 200 {string} string "{"msg": "hello sos"}"
// @Failure 400 {string} string "{"msg": "who are you"}"
// @Router /app/user/users [POST]
func QueryUser(c *gin.Context) {
	u := user{"陈晓", 12}
	c.JSON(http.StatusOK, gin.H{
		"message": "请求成功",
		"code":    "200",
		"data":    u,
	})
}
